; 
; Revision date:

INCLUDE Irvine32.inc 
;
;	Test for a character using the .IF directive 
;	Author: Phil Hartley
;

.data
data BYTE "A"
success BYTE "Success", 0
failure BYTE "Failure", 0
hexdigits	BYTE "0123456789ABCDEFabcdef"
.code
main PROC
	mov eax, 0
	mov al, data
	.IF al == 'A'
		mov edx, OFFSET success
		call WriteString
	.ELSE
		mov edx, OFFSET failure
		call WriteString
	.ENDIF
main ENDP

END main